//
//  TodayBusiTableViewCell.m
//  ShangAPP
//
//  Created by macpro on 16/1/22.
//  Copyright © 2016年 wangdao. All rights reserved.
//

#import "TodayBusiTableViewCell.h"
#import "MyTools.h"

@implementation TodayBusiTableViewCell


-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        [self viewCreate];
    }
    return self;
}

-(void)viewCreate{
    //50
    
    _numberLabel = [[UILabel alloc]initWithFrame:CGRectMake(5 * MYWIDTH, 10, 140 * MYWIDTH, 30)];
//    _numberLabel.backgroundColor =[UIColor redColor];
    _numberLabel.textColor = UIColorFromRGB(0x666666);
    _numberLabel.font = [UIFont systemFontOfSize:12];
    _numberLabel.textAlignment = NSTextAlignmentCenter;
    [self addSubview:_numberLabel];
    
    _timeLabel = [[UILabel alloc]initWithFrame:CGRectMake(145 * MYWIDTH, 10, 90 * MYWIDTH, 30)];
//    _timeLabel.backgroundColor =[UIColor yellowColor];
    _timeLabel.numberOfLines = 0;//_timeLabel.lineBreakMode = UILineBreakModeWordWrap;
    _timeLabel.textColor = UIColorFromRGB(0x666666);
    _timeLabel.font = [UIFont systemFontOfSize:12];
    _timeLabel.textAlignment = NSTextAlignmentCenter;
    [self addSubview:_timeLabel];
    
    _stateLabel = [[UILabel alloc]initWithFrame:CGRectMake(245 * MYWIDTH, 10, 60 * MYWIDTH, 30)];
//    _stateLabel.backgroundColor =[UIColor cyanColor];
    _stateLabel.text = @"已完成";
    _stateLabel.textColor = UIColorFromRGB(0xff0000);
    _stateLabel.font = [UIFont systemFontOfSize:14];
    _stateLabel.textAlignment = NSTextAlignmentCenter;
    [self addSubview:_stateLabel];
    
    _moneyLabel = [[UILabel alloc]initWithFrame:CGRectMake(310 * MYWIDTH, 10, WIDTH - 315 * MYWIDTH, 30)];
//    _moneyLabel.backgroundColor =[UIColor yellowColor];
    _moneyLabel.textColor = UIColorFromRGB(0xff7700);
    _moneyLabel.font = [UIFont systemFontOfSize:14];
    _moneyLabel.textAlignment = NSTextAlignmentCenter;
    [self addSubview:_moneyLabel];
    
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
